package marchsoft.modules.four.h5.service;

import marchsoft.modules.four.common.entity.SafeCase;
import marchsoft.modules.four.common.entity.SafeType;
import marchsoft.modules.four.common.entity.Slideshow;
import marchsoft.modules.four.common.entity.StudyData;

import java.util.List;

/**
 * 首页 service 层 接口
 */
public interface HomeService {
    List<StudyData> getEStudyDataFront1(long safeTypeId);
    //查询所有轮播图信息
    List<Slideshow> getESlideshowAll();

    //根据id查询某一个轮播图对应的文章详细信息
    List<StudyData> getEStudyDataFront(long parseLong);

    //根据id控制点赞
    boolean getEStudyDataFrontLike(long parseLong);

    //取消点赞
    boolean getEStudyDataFrontUnLike(long id);

    //踩
    boolean getEStudyDataFrontDislike(long id);

    //取消踩
    boolean getEStudyDataFrontUnDislike(long id);

    //查询所有分类信息
    List<SafeType> getESafeTypeFrontAll();

    //今日推荐
    List<StudyData> getEStudyDataFrontDaily(int little);

    //经典案例
    List<SafeCase> getESafeCaseFrontAll(int i);

    //看了看
    Object getEStudyDataFrontRead(long id, int count);
}
